#include "addgoods.h"
#include "ui_addgoods.h"

AddGoods::AddGoods(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::AddGoods)
{

    ui->setupUi(this);
}

QMap<QString, QString> AddGoods::getGoodsInfo()
{
    return goodsInformation;
}

void AddGoods::setOrderId(QString orderId)
{
    goodsInformation["ORDER_ID"] = orderId;
}

AddGoods::~AddGoods()
{
    delete ui;
}

void AddGoods::on_buttonBox_accepted()
{
    goodsInformation["ARTICLE_NAME"] = ui->goodsTitle->text();
    goodsInformation["PLACE_DEL"] = ui->placeDel->text();

}
